def reconnect_1():
  """ AilAg1 call to AilAg2,  AilAg2 hold, AilAg2 consult call to AilAg3, reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(DN2)
  AilAg2.AnswerCall()
  AilAg2.InitiateTransfer(DN3)
  AilAg3.AnswerCall()
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()

def reconnect_2():
  """ Inbound call to AilAg1,  AilAg1 hold, AilAg1 consult call to AilAg2, reconnect AilAg1, rel.ExtDn"""
  Ext1AilAg1.MakeCall(DN1)
  AilAg1.AnswerCall()
  AilAg1.InitiateTransfer(DN2)
  AilAg2.AnswerCall()
  AilAg1.ReconnectCall()
  Ext1AilAg1.ReleaseCall()

def reconnect_3():
  """ Outbound call AilAg1 to ExtDN,  AilAg1 hold, AilAg1 consult call to AilAg2, reconnect AilAg1, rel.ExtDn"""
  AilAg1.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.InitiateTransfer(DN2)
  AilAg2.AnswerCall()
  AilAg1.ReconnectCall()
  Ext1AilAg2.ReleaseCall()

def reconnect_4():
  """ AilAg1 call to AilAg2,  AilAg2 hold, AilAg2 outbound consult call , reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(DN2)
  AilAg2.AnswerCall()
  AilAg2.InitiateTransfer(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()

def reconnect_5():
  """ Inbound call to AilAg1,  AilAg1 hold, AilAg1 outbound consult call,AilAg1 reconnect, rel.ExtDn"""
  Ext1AilAg1.MakeCall(DN1)
  AilAg1.AnswerCall()
  AilAg1.InitiateTransfer(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.ReconnectCall()
  Ext1AilAg1.ReleaseCall()

def reconnect_6():
  """ AilAg1 call to AilAg2,  AilAg2 hold, AilAg2 unsuccesful consult call to AilAg3, reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(DN2)
  AilAg2.AnswerCall()
  AilAg2.InitiateTransfer(DN3)
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()

def reconnect_7():
  """ Inbound call to AilAg1,  AilAg1 hold,  AilAg1 unsuccesful consult call to AilAg2, reconnect AilAg1, rel.ExtDn"""
  Ext1AilAg1.MakeCall(DN1)
  AilAg1.AnswerCall()
  AilAg1.InitiateTransfer(DN2)
  AilAg1.ReconnectCall()
  Ext1AilAg1.ReleaseCall()

def reconnect_8():
  """ Outbound call AilAg1 to ExtDN,  AilAg1 hold, AilAg1 unsuccesful consult call,reconnect AilAg1, rel.ExtDn"""
  AilAg1.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.InitiateTransfer(DN2)
  AilAg1.ReconnectCall()
  Ext1AilAg2.ReleaseCall()

def reconnect_9():
  """ AilAg1 call to AilAg2,  AilAg2 hold, AilAg2 unsuccesful outbound consult call, reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(DN2)
  AilAg2.AnswerCall()
  AilAg2.InitiateTransfer(Ext1DN2)
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()

def reconnect_10():
  """ Inbound call to AilAg1,  AilAg1 hold, AilAg1 unsucces. outbound consult call,AilAg1 reconnect, rel.ExtDn"""
  Ext1AilAg1.MakeCall(DN1)
  AilAg1.AnswerCall()
  AilAg1.InitiateTransfer(Ext1DN2)
  AilAg1.ReconnectCall()
  Ext1AilAg1.ReleaseCall()

def reconnect_11():
  """ AilAg1 call to ACD2, AilAg2 hold, AilAg2 consult call to AilAg3, reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(ACD2)
  AilAg2.AnswerCall()
  AilAg2.InitiateTransfer(DN3)
  AilAg3.AnswerCall()
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()

def reconnect_12():
  """ Inbound call to ACD2, AilAg2 hold, AilAg2 consult call to AilAg3, reconnect AilAg2, rel.ExtDn"""
  Ext1AilAg1.MakeCall(ACD2)
  AilAg2.AnswerCall()
  AilAg2.InitiateTransfer(DN3)
  AilAg3.AnswerCall()
  AilAg2.ReconnectCall()
  Ext1AilAg1.ReleaseCall()

def reconnect_13():
  """ AilAg1 call to ACD2, AilAg2 hold, AilAg2 outbound consult call , reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(ACD2)
  AilAg2.AnswerCall()
  AilAg2.InitiateTransfer(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()

def reconnect_21():
  """ AilAg1 call to AilAg2,  AilAg2 hold, AilAg2 internal  call to AilAg3, reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(DN2)
  AilAg2.AnswerCall()
  AilAg2.HoldCall()
  AilAg2.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()

def reconnect_22():
  """ Inbound call to AilAg1,  AilAg1 hold, AilAg1 internal  call to AilAg2, reconnect AilAg1, rel.ExtDn"""
  Ext1AilAg1.MakeCall(DN1)
  AilAg1.AnswerCall()
  AilAg1.HoldCall()
  AilAg1.MakeCall(DN2)
  AilAg2.AnswerCall()
  AilAg1.ReconnectCall()
  Ext1AilAg1.ReleaseCall()

def reconnect_23():
  """ Outbound call AilAg1 to ExtDN,  AilAg1 hold, AilAg1 intern. call to AilAg2, reconnect AilAg1, rel.ExtDn"""
  AilAg1.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.HoldCall()
  AilAg1.MakeCall(DN2)
  AilAg2.AnswerCall()
  AilAg1.ReconnectCall()
  Ext1AilAg2.ReleaseCall()

def reconnect_24():
  """ AilAg1 call to AilAg2,  AilAg2 hold, AilAg2 outbound call , reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(DN2)
  AilAg2.AnswerCall()
  AilAg2.HoldCall()
  AilAg2.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()

def reconnect_25():
  """ Inbound call to AilAg1,  AilAg1 hold, AilAg1 outbound  call,AilAg1 reconnect, rel.ExtDn"""
  Ext1AilAg1.MakeCall(DN1)
  AilAg1.AnswerCall()
  AilAg1.HoldCall()
  AilAg1.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.ReconnectCall()
  Ext1AilAg1.ReleaseCall()

def reconnect_26():
  """ AilAg1 call to AilAg2,  AilAg2 hold, AilAg2 unsuccesful intern. call to AilAg3, reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(DN2)
  AilAg2.AnswerCall()
  AilAg2.HoldCall()
  AilAg2.MakeCall(DN3)
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()

def reconnect_27():
  """ Inbound call to AilAg1,  AilAg1 hold,  AilAg1 unsuccesful intern. call to AilAg2, reconnect AilAg1, rel.ExtDn"""
  Ext1AilAg1.MakeCall(DN1)
  AilAg1.AnswerCall()
  AilAg1.HoldCall()
  AilAg1.MakeCall(DN2)
  AilAg1.ReconnectCall()
  Ext1AilAg1.ReleaseCall()

def reconnect_28():
  """ Outbound call AilAg1 to ExtDN,  AilAg1 hold, AilAg1 unsuccesful intern. call,reconnect AilAg1, rel.ExtDn"""
  AilAg1.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.HoldCall()
  AilAg1.MakeCall(DN2)
  AilAg1.ReconnectCall()
  Ext1AilAg2.ReleaseCall()

def reconnect_29():
  """ AilAg1 call to AilAg2,  AilAg2 hold, AilAg2 unsuccesful outbound call, reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(DN2)
  AilAg2.AnswerCall()
  AilAg2.HoldCall()
  AilAg2.MakeCall(Ext1DN2)
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()


def reconnect_30():
  """ Inbound call to AilAg1,  AilAg1 hold, AilAg1 unsucces. outbound  call,AilAg1 reconnect, rel.ExtDn"""
  Ext1AilAg1.MakeCall(DN1)
  AilAg1.AnswerCall()
  AilAg1.HoldCall()
  AilAg1.MakeCall(Ext1DN2)
  AilAg1.ReconnectCall()
  Ext1AilAg1.ReleaseCall()

def reconnect_31():
  """ AilAg1 call to ACD2, AilAg2 hold, AilAg2 internal call to AilAg3, reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(ACD2)
  AilAg2.AnswerCall()
  AilAg2.HoldCall()
  AilAg2.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()

def reconnect_32():
  """ Inbound call to ACD2, AilAg2 hold, AilAg2 internal  call to AilAg3, reconnect AilAg2, rel.ExtDn"""
  Ext1AilAg1.MakeCall(ACD2)
  AilAg2.AnswerCall()
  AilAg2.HoldCall()
  AilAg2.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg2.ReconnectCall()
  Ext1AilAg1.ReleaseCall()

def reconnect_33():
  """ AilAg1 call to ACD2, AilAg2 hold, AilAg2 outbound  call , reconnect AilAg2, rel. AilAg1"""
  AilAg1.MakeCall(ACD2)
  AilAg2.AnswerCall()
  AilAg2.HoldCall()
  AilAg2.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg2.ReconnectCall()
  AilAg1.ReleaseCall()


